<%-- 
    Document   : searchbytitle
    Created on : Apr 28, 2011, 11:25:40 AM
    Author     : Kevin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="header.html"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Search by title</title>
        <script type="text/javascript">
            function validate(){
                with(document.form2){
                    if(title.value.length < 1){
                        alert("please input title");
                        title.focus();
                        return false;                        
                    }    return true;
                }
            }
        
            
        </script>

    </head>
    <body>
        <h1>Input the title of the movie</h1>
        <form name="form2" onsubmit="return validate();" action="SearchByTitle" method="post">
            <input type="text" name="title" size="20">
            <input type="submit" value="submit">
        </form>
    </body>
</html>
<%@include file="footer.html"%>